<?php
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT.DS.'helpers');
include 'includes/viewitem.php';
?>
<h3 class="itemTitle">Video</h3>
<?php if(($cf_video_type)=='embedcode'):?>
<?php echo $cf_video;?>
<?php elseif (($cf_video_type)=='upload'):?>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/deztheme/js/jwplayer.js"></script>
 
<div id='mediaspace'>This text will be replaced</div>
 
<script type='text/javascript'>
  jwplayer('mediaspace').setup({
    'flashplayer': '<?php echo $this->baseurl ?>/includes/player/player.swf',
	'file': '<?php echo $this->baseurl ?>/upload/video/<?php echo $cf_video_name;?>',
	'skin': '<?php echo $this->baseurl ?>/includes/player/bekle.zip',
    'controlbar': 'over',
    'width': '<?php echo $cf_video_width;?>',
    'height': '<?php echo $cf_video_height;?>',
	
  });
</script>

<?php endif;?>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-send="false" data-layout="box_count" data-width="450" data-show-faces="false"></div>

<span class="tw">
    <a id="count" href="https://twitter.com/share" class="twitter-share-button" data-lang="en" data-count="vertical">Tweet</a>
</span>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

<span class="gp">
<g:plusone size="tall"></g:plusone>
</span>

<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>